package factory;

/**
 * 
 * @author wangpeihu
 *
 */
public class SonyEricssonCompany {
	private static PhoneFactory pf = new PhoneFactory(); // SonyEricsson买了一个手机工厂用来生产C902

	public static void main(String[] args) {
		Phone C902 = pf.createPhone("SonyEricsson", "C902c");
		System.out.println(C902.getBrand() +
										":"+ C902.getModel()+ 
										C902.sendMessage(10086));
		//该款手机还有港版和欧版的，只是型号结尾由china变成了international，手机还是那个手机
		C902.setModel("C902i");
		System.out.println(C902.getBrand() +
				":"+ C902.getModel()+ 
				C902.call(10086));
	}
}